<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form  action="user/save" method="post" style="padding-top:10px;padding-right: 50px;" >
		<input type="hidden" name="id" th:value="${model.id}">
		<div class="layui-form-item">
    		<label class="layui-form-label">用户名</label>
    		<div class="layui-input-block">
      			<input type="text" name="username" th:value="${model.username}" lay-verify="required" required autocomplete="off" placeholder="请输入用户名" class="layui-input">
    		</div>
  		</div>
		<div class="layui-form-item">
    		<label class="layui-form-label">密码</label>
    		<div class="layui-input-block">
      			<input type="password" name="password" autocomplete="off" placeholder="请输入密码" class="layui-input">
    		</div>
  		</div>
		<div class="layui-form-item">
    		<label class="layui-form-label">真实姓名</label>
    		<div class="layui-input-block">
      			<input type="text" name="name" th:value="${model.name}" lay-verify="required" required autocomplete="off" placeholder="请输入真实姓名" class="layui-input">
    		</div>
  		</div>
		<div class="layui-form-item">
    		<label class="layui-form-label">职务</label>
    		<div class="layui-input-block">
      			<input type="text" name="job" th:value="${model.job}"  lay-verify="required" required autocomplete="off" placeholder="请输入职务" class="layui-input">
    		</div>
  		</div>
  		
	</form>
	<!-- <script type="text/javascript">
	layui.use('form',function(){
		var $=layui.$;
		form=layui.form;
		
		form.on('submit(user)',function(data){
			var param=data.field;
			var saveurl=$(data.form).attr('action');
			$.post(saveurl,param,function(json){
				  if(json.success){
					 //that.currRow=null;
	 				 tableIns.reload();
	 				 layer.close(index);
				  }
				  layer.msg(json.msg);
			  });
			return false;
		});
	});
	</script> -->
</body>
</html>